﻿using System.Diagnostics.CodeAnalysis;

namespace apitest.Application
{
    [SugarTable("Device")]
    public class Device
    {
        [SugarColumn(IsPrimaryKey = true), NotNull]
        public string Id { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 分类，主要设备，辅助设备
        /// </summary>
        public string Type { get; set; }
        public string Category { get; set; }
        /// <summary>
        /// 财务编号
        /// </summary>
        public string FinancialNo { get; set; }
        /// <summary>
        /// 出厂编号
        /// </summary>
        public string FactoryNo { get; set; }
        /// <summary>
        /// 生产厂家
        /// </summary>
        public string Manufacturer { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { get; set; }
        /// <summary>
        /// 内校有效期
        /// </summary>
        public DateTime? InExpiryDate { get; set; }
        /// <summary>
        /// 内校日期
        /// </summary>
        public DateTime? InDate { get; set; }
        /// <summary>
        /// 外校有效期
        /// </summary>
        public DateTime? OutExpiryDate { get; set; }
        /// <summary>
        /// 外校日期
        /// </summary>
        public DateTime? OutDate { get; set; }
        /// <summary>
        /// 使用位置
        /// </summary>
        public string Position { get; set; }
        /// <summary>
        /// 使用部门
        /// </summary>
        public string UseDepartmentName { get; set; }
        /// <summary>
        /// 使用人
        /// </summary>
        public string UseUserName { get; set; }
        /// <summary>
        /// 管理部门
        /// </summary>
        public string ManagerDepartmentName { get; set; }
        /// <summary>
        /// 管理员
        /// </summary>
        public string ManagerUserName { get; set; }
        /// <summary>
        /// 购买日期
        /// </summary>
        public DateTime? BuyDate { get; set; }
        /// <summary>
        /// 启用日期
        /// </summary>
        public DateTime? UseDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 校准证书编号
        /// </summary>
        public string CertificateNo { get; set; }

    }

}
